/**

This file is part of MaCI/GIMnet.

MaCI/GIMnet is free software: you can redistribute it and/or modify it 
under the terms of the GNU Lesser General Public License as published 
by the Free Software Foundation, either version 3 of the License, or 
(at your option) any later version.

MaCI/GIMnet is distributed in the hope that it will be useful, but WITHOUT 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public 
License for more details.

You should have received a copy of the GNU Lesser General Public 
License along with GIMnet. (See COPYING.LESSER) If not, see 
<http://www.gnu.org/licenses/>.

**/
#include <cstdlib>
#include "wx/wx.h"
#include "owndebug.h"

#include "GimboLoaderFrame.h"
/*
static void showUsage()
{
  fprintf(stderr,"\n");
  fprintf(stderr,"Usage:\tGimbo [OPTIONS]\n");
  fprintf(stderr,"  [-u addr]\t\t\tUse 'addr' as GIMnet AccessPoints address\n");
  fprintf(stderr,"  [-p port]\t\t\tUse 'port' as GIMnet AccessPoints port\n");
  fprintf(stderr,"  [-n name]\t\t\tUse 'name' as this nodes GIMnet name\n");
  fprintf(stderr,"  [-f conf_file]\t\t\tUse 'conf_file' as configuration file for this module\n");
  
  fprintf(stderr,"  [-v]\t\t\t\tIncrease verbosity by 1\n");
  fprintf(stderr,"  [-q]\t\t\t\tQuiet mode\n");
  fprintf(stderr, "\n\n");
}
*/
/*
 * Implement main in wx-style
 */

class MainApp : public wxApp
{
  public:
    virtual bool OnInit();
    
  private:
    GimboLoaderFrame *Frame;
};

IMPLEMENT_APP(MainApp)

bool MainApp::OnInit()
{
  
  debugInit();
  debugSetGlobalDebugLvl(1);
  debugAddMode(DEBUG_MODE_IMMEDIATE_FLUSH);
  
  
  //parse command line shit and give params to created frame
  
  
  //create frame
  GimboLoaderFrame *Frame=new GimboLoaderFrame(NULL);
  Frame->Show(true);
  
  return TRUE;
}
